%table
  %tr
    %td Mob
    - if @reward.mob
      = render(:partial => @reward.mob, :locals => { :mob => @reward.mob })
    - else
      %td
  %tr
    %td Comment
    %td= @reward.comment
  %tr
    %td Shares
    %td= @reward.number_of_shares

%br

%table
  %tr
    - @classes.each do |c|
      - if (@characters_of_class[c].length > 0)
        %td= image_tag(c.image)
  %tr
    - @classes.each do |c|
      - if (@characters_of_class[c].length > 0)
        %td{:valign => "top"}
          %table
            - @characters_of_class[c].sort.each do |char|
              %tr= render(:partial => char, :locals => { :character => char })

%br

= link_to("Back to raid", :controller => "raids", :action => :show, :id => @reward.raid.id)